package autohome.wz.model;

import java.io.Serializable;

/**
 * ${DESCRIPTION}
 *
 * @author yanwei.yang on 2017-10-19 18:19
 **/
public class JsonResult<T> implements Serializable {
    /**
     * 信息
     * 2016/10/31  15:37
     */
    private String message;
    /**
     * 数据
     * 2016/10/31  15:37
     */
    private T result;

    /**
     * 是否成功
     * 2016/10/31  15:37
     */
    private int returncode;

    public T getResult() {
        return result;
    }

    public String getMessage() {
        return message;
    }

    public int getReturncode() {
        return returncode;
    }

    public void setResult(T result) {
        this.result = result;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setReturncode(int returncode) {
        this.returncode = returncode;
    }

    public JsonResult() {
        super();
    }

    public JsonResult(T result, String message, int returncode) {
        this.result = result;
        this.message = message;
        this.returncode = returncode;
    }

    public JsonResult(T result, String message) {
        this.result = result;
        this.message = message;
    }

    public JsonResult(T result) {
        this.result = result;
        this.returncode = 0;
        this.message = "success";
    }
}
